<?php
/**
 * Created by PhpStorm.
 * User: venki
 * Date: 2023/11/18
 * Time: 17:08
 */

namespace app\events;

use app\behaviors\UserBehavior;
use yii\base\Event;

class UserEvent extends Event
{
    const USER_SEND_WX   = 'send-wx';
    const USER_SEND_MAIL = 'send-mail';

    public string $message;

    public function __construct(array $data)
    {
        parent::__construct();

        $this->message = $data['name'];
    }
}